﻿@{
    ViewBag.Title = "Index";
}

@model DiaosFix.Core.Users

<h2>Profile of @User.Identity.Name</h2>

@if (!(ViewBag.ErrorMessage as string).IsEmpty())
{
    @ViewBag.ErrorMessage
}
else
{ 
    <p>Your role is [@Model.UserType.Name]</p>
    <table style="width: 100%;">
        <thead>
            <tr>
                <td>
                    Item
                </td>
                <td>
                    Value
                </td>
            </tr>
        </thead>
        <tr>
            <td>
                Real Name:
            </td>
            <td>
                @Model.RealName
            </td>
        </tr>
        <tr>
            <td>
                Address:
            </td>
            <td>
                @Model.Address
            </td>
        </tr>
        <tr>
            <td>
                Contact Number:
            </td>
            <td>
                @Model.ContactNumber
            </td>
        </tr>
        <tr>
            <td>
                Email:
            </td>
            <td>
                @Model.Email
            </td>
        </tr>
    </table>
    <p>@Html.ActionLink("Edit My Profile", "Edit")</p>
    <p>Query Completed at @ViewBag.QueryTime</p>
}